package com.guigu.auth.entity.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 菜单
 * </p>
 *
 * @author TaoLong
 * @since 2021-12-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "AuthMenu对象", description = "菜单")
public class AuthMenuRouterVO implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "菜单名称")
    private String name;


    @ApiModelProperty(value = "对应路由path")
    private String path;

    @ApiModelProperty(value = "父级菜单id")
    private Long parentId;

    @ApiModelProperty(value = "对应路由组件component")
    private String component;

    @ApiModelProperty(value = "元数据")
    private Map<String, Object> meta;

    @ApiModelProperty(value = "子菜单")
    private List<AuthMenuRouterVO> children;
}
